<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('所属客户')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-relation_id" data-rule="required" disabled data-source="kuerp/customers/index" class="form-control selectpage" data-search-field="customer_name,customer_code" data-field="customer_name" name="row[relation_id]" type="text" value="{$row.relation_id|htmlentities}">
            <input type="hidden" name="row[relation_id]" value="{$row.relation_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Follow_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-follow_type" class="form-control" disabled name="row[follow_type]" data-rule="required">
                <option value="">{:__('请选择')}</option>
                {foreach name="follow_type" item="vo"}
                <option value="{$vo}" {if condition="$row.follow_type == $vo"}selected{/if}>{$vo}</option>
                {/foreach}
            </select>
            <input type="hidden" name="row[follow_type]" value="{$row.follow_type}">
            <!-- <input id="c-follow_type" class="form-control" name="row[follow_type]" type="text" value="{$row.follow_type|htmlentities}"> -->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Follow')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-follow" class="form-control" name="row[follow]" disabled data-rule="required">
                <option value="">{:__('请选择')}</option>
                {foreach name="follow_status" item="vo"}
                <option value="{$vo}" {if condition="$row.follow == $vo"}selected{/if}>{$vo}</option>
                {/foreach}
            </select>
            <input type="hidden" name="row[follow]" value="{$row.follow}">
            <!-- <input id="c-follow" class="form-control" name="row[follow]" type="text" value="{$row.follow|htmlentities}"> -->
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Next_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-next_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[next_time]" type="text" value="{$row.next_time}">
        </div>
    </div>
    <div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">上传附件:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" class="form-control" size="35" name="row[files]" type="text" value="{$row.files|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="faupload-image" class="btn btn-danger faupload"
                                        data-resize-quality="0.8"
                                        data-resize-width="1024"
                                        data-resize-height="768"
                                        data-input-id="c-image"
                                        data-url="kuerp/base/upload"
                                        data-multiple="true" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>

                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>

	</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control" rows="3" name="row[content]">{$row.content|htmlentities}</textarea>
            <!-- <input id="c-content" class="form-control" name="row[content]" type="text" value="{$row.content|htmlentities}"> -->
        </div>
    </div>
    
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Relation_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-relation_type" data-rule="required" class="form-control" name="row[relation_type]" type="number" value="{$row.relation_type|htmlentities}">
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_staff_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_staff_id" data-rule="required" data-source="create/staff/index" class="form-control selectpage" name="row[create_staff_id]" type="text" value="{$row.create_staff_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Location')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-location" class="form-control" name="row[location]" type="text" value="{$row.location|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lng')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lng" class="form-control" step="0.000000000001" name="row[lng]" type="number" value="{$row.lng|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-lat" class="form-control" step="0.000000000001" name="row[lat]" type="number" value="{$row.lat|htmlentities}">
        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
